-- GENERATED SPELL FOR [Durnholde Veteran] --


function spell0_17860(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(15582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17860', 607, 1)
end

function spell1_17860(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17860', 618, 1)
end

function Sorts_17860(pUnit, Event)
local choix_sorts_17860 = math.random(0, 1)
if choix_sorts_17860 == 0 then
pUnit:RegisterEvent('spell0_17860', 1, 1)
end
if choix_sorts_17860 == 1 then
pUnit:RegisterEvent('spell1_17860', 1, 1)
end
end

function mob17860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17860', math.random(1500, 3000), 1)
end

function mob17860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17860, 1, 'mob17860_Action')
RegisterUnitEvent(17860, 2, 'mob17860_Leave')
RegisterUnitEvent(17860, 3, 'mob17860_Kill')
RegisterUnitEvent(17860, 4, 'mob17860_Die')
